import request from '@/utils/request'
// http://localhost:8888/api/sys/login
export function login(data) {
  return request({
    url: '/sys/login',
    method: 'post',
    data
  })
}

export function getInfo(token) {
  return request({
    url: '/sys/profile',
    method: 'post'

  })
}

export function getPhoto(id) {
  return request({
    url: `/sys/user/${id}`

  })
}
